package com.rainbow.micro.example.dto.req;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * excel导入参数
 * @author 傅为地
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Excel导入参数")
public class RoleExcelReq implements Serializable {

    /**
     *主键
     */
    @ApiModelProperty(value = "",required = true,position=0)
    @Excel(name = "主键", isImportField = "true")
    private Integer id;
    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id",position=1)
    @Excel(name = "角色id", isImportField = "true")
    private String roleId;
    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称",position=2)
    @Excel(name = "角色名称", isImportField = "true")
    private String name;
    /**
     * 角色描述
     */
    @ApiModelProperty(value = "角色描述",position=3)
    @Excel(name = "角色描述", isImportField = "true")
    private String description;
    /**
     * 状态：1有效；0删除
     */
    @ApiModelProperty(value = "状态：1有效；0删除",position=4)
    @Excel(name = "状态", isImportField = "true")
    private Integer status;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",position=5)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", isImportField = "true",format="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间",position=6)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", isImportField = "true",format="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人",position=7)
    @Excel(name = "创建人", isImportField = "true")
    private String creator;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人",position=8)
    @Excel(name = "更新人", isImportField = "true")
    private String updater;
    /**
     * 数据删除标识
     */
    @ApiModelProperty(value = "数据删除标识",position=9)
    @Excel(name = "数据删除标识", isImportField = "true")
    private Boolean logicDelete;


}
